﻿using System.Collections.Generic;
using Rated.DAL.Repository;
using Rated.Website.Helpers;
using Rated.DAL.Db;

namespace Rated.Website.Models
{
    public class HomePageViewModel
    {
        public List<RatedItem> Items { get; private set; }

        public HomePageViewModel()
        { 
            // Now we want to ask the DAL for the links, these could be different for different domain
            // Remember: This is a multi-Tenancy application and could be accessed via a variety of
            // different Urls.
            Items = RatedItemRepository.Items(DomainHelper.Get);
        }
    }
}